package com.example.demo.entity.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class UpdateBlog {
    @NotNull(message = "id不能为空")
    private int id;
    @NotNull(message = "changeContent不能为空")
    private boolean changeContent;
    @NotBlank(message = "text不能为空")
    private String text;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isChangeContent() {
        return changeContent;
    }

    public void setChangeContent(boolean changeContent) {
        this.changeContent = changeContent;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
